package tech.runchen.gz5055.oms.common.constant;

public class Constant {

    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     * 升序
     */
    public static final String ASC = "asc";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "sanmen_oms_login_user_key";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "sanmen_oms_login_tokens:";

    /**
     * 预约任务的ID redis key
     */
    public static final String TASK_ID_KEY = "sanmen_oms_task_id:";

    /**
     * 订单提醒 redis key
     */
    public static final String ORDER_REMINDER_KEY = "order_reminder_id:";

    /**
     * 订单超时取消 redis key
     */
    public static final String ORDER_TIMEOUT_CANCEL = "order_timeout_cancel_id:";

    /**
     * 导入最大数据
     */
    public static final int EXCEL_IMPORT_MAX = 500;

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 呼叫机器回调缓存 前缀
     */
    public static final String MQTT_SM_CALL_ROBOT_KEY = "mqtt_sm_call_robot:";
}
